package value_object.data;

public class End_Information {

	private int end_x_coordinate;
	private int end_y_coordinate;
	private float end_earliest_visibility;
	private float end_latest_visibility;
	
	//Default constructor
	public End_Information() {
		super();
	}
	
	//Constructor with parameters
	public End_Information(int end_x_coordinate, int end_y_coordinate,
			float end_earliest_visibility, float end_latest_visibility) {
		super();
		this.end_x_coordinate = end_x_coordinate;
		this.end_y_coordinate = end_y_coordinate;
		this.end_earliest_visibility = end_earliest_visibility;
		this.end_latest_visibility = end_latest_visibility;
	}
	
	//Getters and setters
	public int getEnd_x_coordinate() {
		return end_x_coordinate;
	}

	public void setEnd_x_coordinate(int end_x_coordinate) {
		this.end_x_coordinate = end_x_coordinate;
	}

	public int getEnd_y_coordinate() {
		return end_y_coordinate;
	}

	public void setEnd_y_coordinate(int end_y_coordinate) {
		this.end_y_coordinate = end_y_coordinate;
	}

	public float getEnd_earliest_visibility() {
		return end_earliest_visibility;
	}

	public void setEnd_earliest_visibility(float end_earliest_visibility) {
		this.end_earliest_visibility = end_earliest_visibility;
	}

	public float getEnd_latest_visibility() {
		return end_latest_visibility;
	}

	public void setEnd_latest_visibility(float end_latest_visibility) {
		this.end_latest_visibility = end_latest_visibility;
	}
	
	@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		
		buffer.append(this.end_x_coordinate + "(end-x-coordinate)");
		buffer.append(" ");
		buffer.append(this.end_y_coordinate + "(end-y-coordinate)");
		buffer.append(" ");
		buffer.append(this.end_earliest_visibility + "(end-earliest-visibility)");
		buffer.append(" ");
		buffer.append(this.end_latest_visibility + "(end-latest-visibility)");
		
		return buffer.toString();		
	}
	
	public String toSimpleString() {
		StringBuffer buffer = new StringBuffer();
		
		buffer.append(this.end_x_coordinate);
		buffer.append(" ");
		buffer.append(this.end_y_coordinate);
		buffer.append(" ");
		buffer.append(this.end_earliest_visibility);
		buffer.append(" ");
		buffer.append(this.end_latest_visibility);
		
		return buffer.toString();		
	}
}
